<template>
	<view>
		<view v-if="popState">
			<view class="jx-popup-mark" @click="optionTapCancel()">
				<view class="mark-content" @tap.stop>
					<view class="content">
						<view style="font-weight: bold;text-align: center;color: red;font-size: 32rpx;">汇康有品商城服务说明</view>
						<view style="margin: 20px;text-align: left;text-indent: 2em">
						<view style="">
						   本商城上的所有商品都不支持无条件退换货因本商城商品的特殊性，
						   商品一经出售概不退货，在商品有效期内如经双方确认商品为非买家原因损坏的， 
						   十五天内可申请换货，除此之外，不接受任何理由退换货。 
						</view>
						<view>
							  满足换货申请的前提下，包邮商品需要买家承担换货邮费，非包邮商品需要买家承担发货和换货邮费。请在本商城购买商品前认真阅读用户协议和隐私协议等相关协议，所有商品均不能退货，如未阅读相关协议下单导致退货纠纷的由消费者自行承担责任。买家购买商品付款后视为对上述条款的同意，请认真阅读上述文字。
						</view>
						</view>
						
					</view> 
					<view class="content">
						<slot name="content"></slot>
						<view class="footer-btn">

						</view>
						<view class="footer-btn-two">
							<view class="sure-btn" @click="optionTapCancel()">确认</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

 <script >
		export default {
			name: 'PassPopup',
			props: {
				popState: {
					type: Boolean,
				}, 
			},
			data() {
				return {
					payPass:''
				}
			},
			onLoad(e) {},
			onShow() {},
			methods: {
				clearPass(){
					this.payPass = ""
				},
				 optionTapCancel() {  
				       this.$emit('optionTapCancel'); 
				 },
				 optionSubmitSure() {
				    this.$emit('optionSubmitSure',this.payPass); 
				 },
				 
			}
		}
</script> 

<style lang="scss" scoped>
	/**弹窗*/
	.jx-popup-mark {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background-color: rgba(0, 0, 0, 0.4);
		bottom: 0;
		z-index: 9;

		.mark-content {
			width: 90%;
			position: fixed;
			top: 50%;
			left: 50%;
			background-color: white;
			transform: translate(-50%, -50%);
			padding: 50rpx 0;
			border-radius: 20rpx;
		}

		.close {
			position: absolute;
			top: 0;
			right: 10rpx;
			font-size: 60rpx;
			color: #333;

			.img-close {
				width: 50rpx;
				height: 50rpx;
			}
		}
	}

	.jx-popup-bottom-mark {
		.mark-content {
			width: 100%;
			position: fixed;
			bottom: 0;
			top: 30%;
			left: 0;
			right: 0;
			background-color: white;
			transform: translate(0%, 0%);
			padding: 50rpx 0;
			border-radius: 20rpx;
			border-bottom-left-radius: 0;
			border-bottom-right-radius: 0;
		}
	}

	.footer-btn {
		text-align: center;
		margin-top: 20px;

		.add-btn {
			height: 90rpx;
			width: 80%;
			color: #fff;
			background-color: #F09B3F;
			border-radius: 100rpx;
			margin: 0 auto;
			margin-top: 30rpx;
			margin-bottom: 20rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	.footer-btn-two {
		width: 90%;
		display: flex;
		align-items: center;
		margin: 0 auto;
		margin-top: 30rpx;
		align-items: center;
		justify-content: center;

		.cancel-btn {
			width: 48%;
			height: 90rpx;
			background-color: #e8e9e8;
			border-radius: 100rpx;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.sure-btn {
			width: 48%;
			height: 80rpx;
			background-color: #4389F1;
			border-radius: 100rpx;
			color: #fff;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}

	/*弹窗end*/
</style>